<?php
include 'includes'.DIRECTORY_SEPARATOR.'functions.php';

db() ;
$level = $_SESSION['user_info']['level'];
$rep = $_SESSION['user_info']['rep'];
$power = $_SESSION['user_info']['power'];
$money = $_SESSION['user_info']['money'];
$smart = $_SESSION['user_info']['smart'];
$life = $_SESSION['user_info']['life'];

include 'includes'.DIRECTORY_SEPARATOR.'level.php';
include 'includes'.DIRECTORY_SEPARATOR.'rep.php';
    
if($_SESSION['is_logged']!=true)
{
    header('Location: ../index.php');
    exit;
}
if(isset($_GET['logout']))
{
    session_destroy();
    header('Location: ../index.php');
    exit;
}

$casino_q = mysql_query('SELECT * FROM casino'); 
$avatar_q = mysql_query('SELECT avatar FROM users WHERE user="'.$_SESSION['user_info']['user'].'"');
$avatar = mysql_fetch_assoc($avatar_q);
